package velox.jcr.mapper.declarative;

import java.util.Map;

import javax.jcr.Node;
import javax.jcr.RepositoryException;

import org.springframework.beans.BeanWrapper;

public interface Mapping {
	void readFromCache(Map<String, Object> cache, BeanWrapper destination);
	void writeToCache(Map<String, Object> cache, BeanWrapper object);
	
	void read(Node node, BeanWrapper destination) throws RepositoryException;
	void write(Node node, BeanWrapper object, boolean create) throws RepositoryException;
	String getJavaProperty();
}